package com.globaldom.model;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable
public class Deployment implements Serializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;

	@NotPersistent
	private static final long serialVersionUID = 1L;
	// Number of resources deployed
	@Persistent
	private Long AvailResources;
	// kind of resource
	@Persistent
	private Integer ResourceType;
	@Persistent
	private Long personLocation;
	@Persistent
	private String person;
	
	
	public Long getAvailResources() {
		return this.AvailResources;
	}

	public void setAvailResources(Long AvailResources) {
		this.AvailResources = AvailResources;
	}

	public Integer getResourceType() {
		return this.ResourceType;
	}

	public void setResourceType(Integer ResourceType) {
		this.ResourceType = ResourceType;
	}

	public Long getPersonLocation() {
		return this.personLocation;
	}

	public void setPersonLocation(Long personLocation) {
		this.personLocation = personLocation;
	}

	
	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Id: ").append(getId()).append(", ");
		sb.append("AvailResources: ").append(getAvailResources()).append(", ");
		sb.append("ResourceType: ").append(getResourceType()).append(", ");
		sb.append("PersonLocation: ").append(getPersonLocation());
		return sb.toString();
	}
}
